﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XWord.WPF.ApplicationFramework.Validations
{
    public class EmailValidator : RegularExpressionValidator
    {
        public override bool Validate()
        {
            ErrorMessage = "邮件地址格式错误";
           return base.Validate();
        }

        public override string Pattern
        {
            get
            {
                return @"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";
            }
        }
    }
}
